<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消息列表</title>
<script type="text/javascript">
	function batchdel() {
		if(confirm("确定删除吗")){
			var str = selectallpro();
			if(str !=false)
			{
				$.post("/welcome/ajaxbutton", {"op": "delMessage","str_ids":str},
						function(data){
							if(data==200)
							{
							   location.href = "/welcome/ajaxbutton?op=showMoreMessage";
								return false;
							}
						},"json");

			}
		}
	}
</script>
<body class="withvernav">
<div class="bodywrapper">
	{{include file='/public/leftmenu.tpl'}}
	<div class="centercontent tables">
		<div class="pageheader notab">
			<h1 class="pagetitle">
				消息列表
			</h1>
			<span class="pagedesc"></span>
		</div>
		<!--pageheader-->
		<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
		<div id="contentwrapper" class="contentwrapper">
			<button class="stdbtn btn_blue" onClick="batchdel();return false;">批量删除</button>&nbsp;&nbsp;&nbsp;
			<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
				<thead>
					<tr>
						<td class="head0"><a onClick="allSelect('ppid[]')">全选</a></td>
						<th class="head0">消息id</th>
						<th class="head0">消息类型</th>
						<th class="head1">消息内容</th>
						<th class="head1">消息时间</th>
						<th class="head1">消息来源</th>
                        <th class="head1">查看详细</th>
					</tr>
				</thead>
				<tbody>
				{{foreach from=$msglist item=li key=key}}
				    <tr>
					    <td><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.id}}"/></td>
					    <td>{{$li.id}}</td>
					    <td>{{$li.message_type}}</td>
					    <td>{{$li.message}}</td>
					    <td>{{$li.instime}}</td>
					    <td>{{$li.message_formName}}</td>
                         <td><a href="{{$li.url}}" target="_blank">点击查看</a></td>
				    </tr>
				{{/foreach}}
				</tbody>
			</table>
			<div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
			<br />
			<br />
		</div>
	</div>
	<!--bodywrapper-->
</body>
</html>